<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\Slide;
use App\Http\Controllers\Api\V1\Resources\SlideResource;

class SlidesController extends Controller
{
    public function index()
    {
    	SlideResource::wrap('data');
    	return SlideResource::collection(Slide::position()->show()->orderBy('order')->get());
    }
}
